package com.yuma.springmcpserver.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service
public class MathService {
    @Tool(description = "加法")
    public int add(int a, int b){
        return a + b;
    }
    @Tool(description = "减法")
    public int subtract(int a, int b){
        return a + b;
    }
    @Tool(description = "乘法")
    public int multiply(int a, int b){
        return a * b;
    }
    @Tool(description = "除法")
    public int divide(int a, int b){
        return a / b;
    }
}
